package com.sc.nft.service;


import com.sc.nft.entity.MallMemberEquityTarget;
import com.sc.nft.entity.dto.CheckHasPreemptionGetByTargetDTO;
import com.sc.nft.entity.vo.MallMemberEquityTargetVO;

import java.util.List;

/**
 * <p>
 * 商城会员权益对应福利 服务类
 * </p>
 *
 * @author author
 * @since 2024-04-02
 */
public interface MallMemberEquityTargetService {


    /**
     * 添加商城会员权益对应福利
     *
     * @param mallMemberEquityId
     * @param mallMemberEquityTargetVOList
     */
    void add(Long mallMemberEquityId, List<MallMemberEquityTargetVO> mallMemberEquityTargetVOList);

    /**
     * 编辑商城会员权益对应福利
     *
     * @param mallMemberEquityId
     * @param mallMemberEquityTargetVOList
     */
    void update(Long mallMemberEquityId, List<MallMemberEquityTargetVO> mallMemberEquityTargetVOList);

    /**
     * 通过会员权益id获取
     *
     * @param mallMemberEquityId
     * @return
     */
    List<MallMemberEquityTarget> getListById(Long mallMemberEquityId);

    /**
     * 移除会员权益对应福利
     *
     * @param mallMemberEquityId
     */
    void remove(Long mallMemberEquityId);

    /**
     * 优先抢查询当前商品规格是否存在优先抢
     * @param activitySpecId
     * @return
     */
    List<CheckHasPreemptionGetByTargetDTO> checkHasPreemptionGetByTargetId(Long activitySpecId);
}
